package homework.work1.introduce;

public class Demo {
    public static void main(String[] args) {
        String s=new String();
        System.out.println("s = " + s);
        byte[] bytes={97,98,99};
        String s1 = new String(bytes);
        System.out.println("s1 = " + s1);

        String s2 = new String(bytes, 1, 2);
        System.out.println("s2 = " + s2);

        char[] chars={'h','e','l','l','o'};
        String s3 = new String(chars);
        System.out.println("s3 = " + s3);

        String s4 = new String("abcdefgabc");
        System.out.println("s4 = " + s4);
    }

}
